package com.rongc.client.core.network.code;


import com.rongc.client.core.utils.ActivityUtils;

public class HandleCode {


    public static int code = CodeType.Succ;
    public static String headerMessage = "";

    public static boolean requestSuccess() {

        if (code == CodeType.Succ) {
            return true;
        } else {
            ActivityUtils.toast(headerMessage);
            return false;
        }

    }



    /**
     * 返回值类型
     */
    public final static class CodeType {
        /** 成功 */
        public static final int Succ = 1;
        /** 失败 */
        public static final int Fail = 0;
    }
}
